package stockblaster.client;

import stockblaster.gen.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class ArdoProfilePageActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.profile_page);
	}
	
	@Override
	public void onBackPressed() {
		MethodHelper.switch_activity(this, ArdoProfileActivity.class, false);
	}
	
	public void stockPage(View v) {
		if (!Users.doesUserExist("Januardo Jankowski")) {
			CurrentUser.createNewUser("Januardo Jankowski", 100000.00);
		} else {
			CurrentUser.setCurrentUser("Januardo Jankowski");
		}
		MethodHelper.switch_activity(this, MainPageActivity.class, false);
	}

	public void objectivePage(View v) {
		//CurrentUser.setFromClass(ArdoProfilePageActivity.class, CurrentUser.OBJECTIVE);
		MethodHelper.switch_activity(this, ObjectiveActivity.class, false);
	}
}
